<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js location地址栏</title>
</head>
<body>
	<div class="mian">
		<script>
			dobj=new Date();
			hour=dobj.getHours();
			minute=dobj.getMinutes();
			second=dobj.getSeconds();
			str=hour+':'+minute+':'+second;
			document.write("<h1>"+str+"</h1>");

		</script>

		<!-- <p><a href="javascript:" id="aid">刷新</a></p> -->
		<button id='aid'>刷新</button>
		
	</div>

	
</body>
	<script>
		aidobj=document.getElementById('aid');
		aidobj.onclick=function(){
			location.reload();//reload刷新当前页面。重新加载地址栏，等同于F5刷新
		}
	</script>
</html>